************************************************************
* POPPA Dataset - Variable Labels and Value Labels
************************************************************

cd "C:\Users\b1040249\Dropbox (Privat)\Research\POPPA\POPPA v2\Replication_files\non_shareable"
*adapt this link 
use poppa_integrated_unlabelled

label var country "Country"
label var country_short "Country Abbreviated"
label var party_short "Party Name Short"

rename wave wave_old
gen wave = . 
replace wave = 1 if wave_old =="Wave 1 - 2018"
replace wave = 2 if wave_old =="Wave 2 - 2023"
label define wave 1 "Wave 1 - 2018" 2 "Wave 2 - 2023"
label values wave wave 
label var wave "Survey Wave"
drop wave_old
order wave, before(party_name_english)

label var party_name_english "Party Name English"
label var party_name_original "Party Name Original"

label var family "Party Family"
label define family1 1 "1 - Radical Right" 2 "2 - Conservatives" 3 "3 - Liberal" 4 "4 - Christian Democratic" 5 "5 - Social Democratic" 6 "6 - Radical Left" 7 "7 - Green" 8 "8 - Regionalist" 9 "9 - No family" 10 "10 - Confessional" 11 "11 - Agrarian" 
label values family family1

label var family_label "Party Family Name"
label var poppa_id "POPPA ID"
label var partyfacts_id "Partyfacts ID"
label var n_experts "Number of Experts"
label var mean_n_experts "Mean Number of Experts"
label var manichean "Manichean Worldview"
label var indivisible "View of Homogeneity of the People"
label var generalwill "View of a General Will"
label var peoplecentrism "People-Centrism"
label var antielitism "Anti-Elitism"
label var elitecult "View of Academics as Elite"
label var lrecon "Left-Right Placement: Economic Issues"
label var salienceecon "Salience of Economic Issues"
label var immigration "Party Position: Immigration"
*label var immigration "Support for Immigration"
label var nativism "Nativism"
label var lifestyle "Party Position: Social Lifestyle"
*label var lifestyle "Support for Liberal Lifestyle"
label var laworder "Party Position: Civil Liberties vs. Law and Order"
*label var laworder "Support for Law and Order"
label var saliencecult "Salience of Cultural Issues"
label var lroverall "Left-Right Placement" 
label var eu "Party Position: EU"
label var complex "Political Decision-Making Portrayed as Complex"
label var emotional "Appeal to Emotions"
label var intradem "Intra-Party Democracy"
label var personalised "Personalized Leadership"
label var populism_mean "Populism Mean"
label var populism_cfa "Populism Factor (CFA)"
label var populism_cfa_rescaled "Populism Factor Rescaled (CFA)"

cd "C:\Users\b1040249\Dropbox (Privat)\Research\POPPA\POPPA v2\Replication_files\final_data"
save poppa_integrated 